CC=g++
CFLAGS = -c 
SOURCES = init.cc cache.cc hierarchy.cc main.cc 
OBJECTS = $(SOURCES:.cc=.o)
EXECUTABLE = cacheSimulator

.c.o:
	$(CC) $(CFLAGS) $< -o $@

compile: $(OBJECTS)
	$(CC) $(OBJECTS) -o $(EXECUTABLE)
clean:
	rm -rf $(OBJECTS) $(EXECUTABLE)
